package com.loveprogrammer.eternity.notify;

import com.loveprogrammer.eternity.action.Battle;
import com.loveprogrammer.eternity.model.Character;
import com.loveprogrammer.eternity.model.Monster;

import java.util.List;

/**
 * @version 1.0.0
 * @description:
 * @author: eric
 * @date: 2022-08-18 17:39
 **/
public class Notify {

    private final Battle battle;

    public Notify(Battle battle) {
        this.battle = battle;
    }

    // 发送一个事件
    public void publishDeadEvent(Character character, List<? extends Character> camp) {
        battle.publishDeadEvent(character,camp);
    }

    public void publishCallEvent(Character monster, List<? extends Character> camp, int seconds) {
        battle.publishCallEvent(monster,camp,seconds);
    }
}
